package net.csdn.business.mirror.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.csdn.business.common.domain.mirror.AddMirrorImportDataDTO;
import net.csdn.business.common.domain.query.mirror.MirrorPageQuery;
import net.csdn.business.common.domain.vo.mirror.ProjectMirrorDataVO;
import net.csdn.business.mirror.entity.bean.ProjectMirrorData;
import net.csdn.business.mirror.entity.bean.ThirdPartMirrorInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ThirdPartMirrorInfoMapper extends BaseMapper<ThirdPartMirrorInfo> {

    @Select("select count(*) from third_party_mirror_info where source = #{source} and name = #{name}")
    public Long countByNameAndSource(@Param("name") String name, @Param("source") String source);
}
